<?php 
$params = Yii::app()->controller->getActionParams();
if (!empty($params)) {
    foreach($params as $key => $value) {
        if ($key == 'lang')
            $langParam = $value;
    }
}
?>

<div class="sidebar_box"><span class="bottom"></span>
    <h3><?php echo Yii::t('translation', 'Categories') ?></h3>
    <div class="content">
        <ul class="sidebar_list">


            <?php

            $TBHangSanXuat = Hangsanxuat::model()->findAll();
            foreach($TBHangSanXuat as $item)
            {
                ?>
                <li><a href="<?php echo Yii::app()->request->baseUrl;?>/index.php?r=site/index1&idhsx=<?php echo $item->IDHSX;?><?php if (!empty($langParam)) echo "&lang=".$langParam; ?>"><?php echo $item->TENHSX; ?></a>
                </li>
                <?php
            }
            ?>
        </ul>
    </div>
</div>